_app.component.html_
```html{1}
Welcome, {{ user.username }}!
```
_app.component.ts_
```js{14}
import { Component, OnInit } from '@angular/core';
import { Amplify, Auth } from 'aws-amplify';
import awsExports from './aws-exports';
@Component({
selector: 'sign-up-with-email',
templateUrl: 'sign-up-with-email.component.html',
})
export class SignUpWithEmailComponent implements OnInit {
constructor() {
Amplify.configure(awsExports);
}
services = {
async handleSignUp(formData: Record) {
let { username, password, attributes } = formData;
// custom username
username = username.toLowerCase();
attributes.email = attributes.email.toLowerCase();
return Auth.signUp({
username,
password,
attributes,
autoSignIn: {
enabled: true,
},
});
},
};
```